/* James McTaggart (jcm28) Informatics
Multimedia Communications Technology - 17th May 2007
In making this submission I declare that my work contains no examples
of misconduct, such as plagiarism, collusion, or fabrication of results.
*/

package client;

import java.util.TimerTask;

public class DisplayThread extends TimerTask {

	private Client client;
	private int counter;
	
	public DisplayThread(Client client) {
		this.client = client;
		counter = 0;
	}
	
	@Override
	public void run() {
		if(client.isBleep()){
			client.removeSample();
			client.print("BLEEP");
		}
		else{
			client.print(client.removeSample());
		}
	}

}
